{extends file="../acp.html"}

{block name="title"}{$head_title}{/block}
{block name="content"}
<div class="t-art" style="margin-bottom:10px;"><a href="/AcpArticle/add_article" class="btn btn-blue"><i class="gicon-plus white"></i>添加文章</a>  </div>
<div class="tablesWrap">  
    <div class="tables-searchbox"> 
	<form name="form1" action="/AcpArticle/list_article" method="get">
        <div class="t-list">
            <span class="tbs-txt">标题：</span>  
            <input type="text" name="keyword" id="keyword" value="{$keyword}">
        </div>
        <div class="t-list">
            <span class="tbs-txt">文章分类：</span>  
            <select class="small" name="sort_id" id="sort_id">  
                <option value="0">--请选择--</option> 
				{html_options options=$article_category_options selected=$article_category_option_selected}
            </select>
        </div>  
        <div class="t-list t-list-w">
            <div class="formitems inline">  
                <label class="fi-name" style="width:40px; font-weight:normal;">时间：</label>  
                <div class="form-controls" style="margin-left:40px;">  
                    <input type="text" name="begin_time" id="begin_time" value="{$begin_time}" autocomplete="off" class="Wdate" onclick="WdatePicker({ dateFmt:'yyyy-MM-dd'})">  
                    <span class="fi-text">至</span>  
                    <input type="text" name="end_time" id="end_time" value="{$end_time}" autocomplete="off" class="Wdate" onclick="WdatePicker({ dateFmt:'yyyy-MM-dd'})">  
                </div>  
            </div> 
        </div> 
        <div class="t-list">
			<input type="hidden" name="act" value="submit" />
            <button class="btn" type="submit"><i class="gicon-search"></i>搜索</button> 
        </div>    
	</form>
    </div>  
    <!-- end tables-searchbox -->  
    <table class="wxtables">  
        <colgroup>  
        <col width="5%">  
        <col width="35%">  
        <col width="15%">  
        <col width="15%">
        <col width="10%">  
        <col width="5%">     
        <col width="15%">  
        </colgroup>  
        <thead>  
            <tr>  
                <td>选择</td>  
                <td>标题</td>  
                <td>文章分类</td>  
                <td>添加日期</td>  
                <td>浏览量</td> 
                <td>排序</td>  
                <td>操作</td>  
            </tr>  
        </thead>  
        <tbody>  
		{if $general_article_list}
		{foreach from=$general_article_list item=this}
            <tr>  
                <td class="_checkbox">  
                    <input type="checkbox" class="checkbox" name="checkIds[]" value="{$this.article_id}">  
                </td>  
                <td><a href="/Article/article_display/id/{$this.article_id}" target="_blank">{$this.title}</a></td>  
                <td>{$this.article_sort_name}</td>  
                <td>{$this.addtime}</td>
                <td>{$this.clickdot}</td>  
                <td class="serial">
					<img src="__IMAGES__/ajax-loading.gif" class="hide" id="ajax-loading" />
					<input type="text" class="mini" style="width:40px; text-align:center; border-color: #fff;" value="{$this.serial}" onblur="setSerial({$this.article_id}, this);" />
				</td>   
                <td>  
                    <a href="__APP__/AcpArticle/edit_article/id/{$this.article_id}" class="btn" title="编辑"><i class="gicon-edit black"></i>编辑</a>   
                    <a href="javascript:;" onclick="delArticle({$this.article_id}, this);" class="btn" title="删除"><i class="gicon-trash black"></i>删除</a>    
                </td>  
            </tr>  
		{/foreach}
		{else}
			<tr>
			{if $is_search}
				<td colspan="7" class="center">暂未搜索到相关文章，您可以尝试其他搜索</td>
			{else}
				<td colspan="7" class="center">暂无文章，您可以<a href="__APP__/AcpArticle/add_article">添加文章</a></td>
			{/if}
			</tr>
		{/if}
        </tbody>  
    </table>  
    <!-- end wxtables -->  
	{if $general_article_list}
    <div class="tables-btmctrl clearfix">  
        <div class="fl">  
            <a href="javascript:selall()" class="btn btn-blue">全选</a>  
            <a href="javascript:clearall()" class="btn btn-blue">取消</a>  
            <a href="javascript:;" onclick="delArticleBatch();" class="btn btn-blue">删除</a>  
        </div>  
        <div class="fr">  
            <div class="paginate">  
                {$pagination}
            </div>  
            <!-- end paginate -->  
        </div>  
    </div>  
	{/if}
    <!-- end tables-btmctrl -->  
</div>  
<!-- end tablesWrap -->    
{/block} 

{block name="js"}
<script src="/Public/Plugins/My97DatePicker/WdatePicker.js?version={$version}"></script>
<script type="text/javascript" src="__ACPJS__/AcpArticle/article.js?version={$version}"></script>
{/block} 

{block name="css"}
<link rel="stylesheet" href="/Public/Css/acp/AcpArticle/list_article_cloud.css" type="text/css" />
{/block}
